﻿<p>
	<ul>
		<li><a href="<?php echo $this->url(array('controller'=>'jswjggtzd','action'=>'add'));?>">添加通知单</a></li>
		<li id="del_link"><a href="#">删除</a></li>
	</ul>
</p>
<form id="">
<table>
<tr>
	<th>#</th>
	<th>序号</th>
	<th>编号</th>
	<th>图号名称</th>
	<th>更改摘要</th>
	<th>适用范围</th>
	<th>生效日期</th>
	<th>扫描件</th>
	<th>电子版</th>
	<th>操作</th>
</tr>

<?php foreach($this->files as $file):?>
<tr id="<?php echo 'file'.$file->id;?>">
	
	<td><?php echo $this->formCheckbox('file_checks[]',$file->id);?></td>
	<td><?php echo $this->escape($file->old_id);?></td>
	<td><?php echo $this->escape($file->drawing_num);?></td>
	<td><?php echo $this->escape($file->file_name);?></td>
	<td><?php echo $this->escape($file->file_content);?></td>
	<td><?php echo $this->escape($file->use_for);?></td>
	<td><?php echo $this->escape($file->add_date);?></td>
	<?php if(substr_count($file->scan_img,'jpg')==0):?>
	<td>无</td>
	<?php else:?>
	<td><a href="<?php echo '/'.$this->escape($file->scan_img);?>">查看</a></td>
	<?php endif;?>
	<?php if(substr_count($file->pdf_file,'pdf')==0):?>
	<td>无</td>
	<?php else:?>
	<td><a href="<?php echo '/'.$this->escape($file->pdf_file);?>">查看</a></td>
	<?php endif;?>
	<td>
		<a href="<?php echo $this->url(array('controller'=>'jswjggtzd','action'=>'edit','id'=>$file->id));?>">修改</a>
	</td>	
</tr>
<?php endforeach;?>
</table>
</form>